<template>
	<view>
		<qf-image-cropper :choosable="false" :src="Path" @crop="handleCrop"></qf-image-cropper>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				Path: ''
			};
		},
		onLoad(options) {
			this.Path = options.Path;
		},
		methods: {
			handleCrop(e) {
				uni.$emit("Cover", e.tempFilePath);
				uni.navigateBack();
			}
		}
	}
</script>